package com.solution.admin.auth.entity;

import java.util.List;
import java.util.Map;

import com.solution.common.entity.BaseEntity;

/**
 * @author zhuoyu
 * @date 2017年4月7日 下午2:05:26
 */
public class RoleEntity extends BaseEntity {

	private static final long serialVersionUID = -4591395487970585415L;
	/**
	 */
	private String roleCode;
	/**
	 * 角色名称
	 */
	private String roleName;

	/**
	 * 角色简介
	 */
	private String roleIntro;


	/**
	 * 所属经销商
	 */
	private Long dealerId;

	/**
	 * 是否虚拟 0 否 1 是
	 */
	private String isVirtual;

	/**
	 * 角色权限
	 */
	private Map<String, String> roleResource;
	/**
	 * 资源
	 */
	private List<ResourceEntity> resource;

	/**
	 * 是否选中 1 选中 0 选中
	 */
	private String chkFlag="0";

	/**
	 * 用户id(主键)
	 */
	private Long userId;

	/**
	 * 经销商名称
	 */
	private String dealerName;

	/**
	 * @return the isVirtual
	 */
	public String getIsVirtual() {
		return isVirtual;
	}

	/**
	 * @param isVirtual
	 *            the isVirtual to set
	 */
	public void setIsVirtual(String isVirtual) {
		this.isVirtual = isVirtual;
	}

	/**
	 * @return the roleResource
	 */
	public Map<String, String> getRoleResource() {
		return roleResource;
	}

	/**
	 * @param roleResource
	 *            the roleResource to set
	 */
	public void setRoleResource(Map<String, String> roleResource) {
		this.roleResource = roleResource;
	}

	public String getRoleCode() {
		return roleCode;
	}

	/**
	 * @param roleCode
	 *            the roleCode to set
	 */
	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}

	/**
	 * @return the roleName
	 */
	public String getRoleName() {
		return roleName;
	}

	/**
	 * @param roleName
	 *            the roleName to set
	 */
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	/**
	 * @return the roleIntro
	 */
	public String getRoleIntro() {
		return roleIntro;
	}

	/**
	 * @param roleIntro
	 *            the roleIntro to set
	 */
	public void setRoleIntro(String roleIntro) {
		this.roleIntro = roleIntro;
	}

	/**
	 * @return the dealerId
	 */
	public Long getDealerId() {
		return dealerId;
	}

	/**
	 * @param dealerId
	 *            the dealerId to set
	 */
	public void setDealerId(Long dealerId) {
		this.dealerId = dealerId;
	}

	public String getDealerName() {
		return this.dealerName;
	}

	public void setDealerName(String dealerName) {
		this.dealerName = dealerName;
	}

	public List<ResourceEntity> getResource() {
		return resource;
	}

	public void setResource(List<ResourceEntity> resource) {
		this.resource = resource;
	}

	public String getChkFlag() {
		return chkFlag;
	}

	public void setChkFlag(String chkFlag) {
		this.chkFlag = chkFlag;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}
}